package com.wish.group05.financial.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wish.group05.base.dto.JrRentInstallmentResponseDto;
import com.wish.group05.base.dto.JrRentInstallmentSearchPage;
import com.wish.group05.base.entity.JrProduct;
import com.wish.group05.base.service.IJrProductService;
import com.wish.group05.common.core.web.controller.BaseController;
import com.wish.group05.common.core.web.domain.AjaxResult;
import com.wish.group05.common.core.web.page.TableDataInfo;
import com.wish.group05.common.log.annotation.Log;
import com.wish.group05.common.log.enums.BusinessType;
import com.wish.group05.common.security.annotation.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;

/**
 * 【请填写功能名称】Controller
 * 
 * @author wish
 * @date 2022-05-26
 */
@RestController
@RequestMapping("/rentInstall")
public class RentInstallController extends BaseController
{
    @Autowired
    private IJrProductService iJrProductService;
    /**
     * 查询【请填写功能名称】列表
     */
    //@PreAuthorize(hasPermi = "financial:product:list")
    @GetMapping("financialList")
    public AjaxResult list(JrRentInstallmentSearchPage jrProduct){
        startPage();
        List<JrRentInstallmentResponseDto> list = iJrProductService.findlist(jrProduct);
        return AjaxResult.success(list);
    }

}
